package workerswithdb;

import java.util.ArrayList;
import java.util.Date;

import api.entitites.IOrder;
import api.entitites.OrderStatus;

public interface IDAOOrder {

	public ArrayList<String> insertOrderToDB(IOrder order);

	public IOrder getOrderFromDb(Integer number_order);

	public Integer getIdOrder(Integer order_number);

	public ArrayList<String> sortAllOrders(SortOrdersBy sort_orders_by);

	public ArrayList<String> sortMadingOrders(SortOrdersBy sort_orders_by);

	public ArrayList<String> sortOrdersByPeriod(Date begin, Date end,
			SortOrdersBy sort_orders_by, OrderStatus orderStatus);

	public ArrayList<String> getMasterByOrder(Integer number_order);

	public ArrayList<String> getNextFreeDate();

	public ArrayList<String> shiftDeadlineDate(Date newDate, Integer number_order);

	public ArrayList<String> markOrder(Integer order_number, OrderStatus order_status);

	public ArrayList<String> cloneOrder(Integer number_order);
}
